﻿using System;

class TrapezoidArea
{
    static void Main()
    {
        double a = 5;
        double b = 10;
        double h = 6;
        double area = ((a + b) / 2.0) * h;

        Console.WriteLine(area);

    }
}

